#ifndef QNivelacijaLISTA_H
#define QNivelacijaLISTA_H

#include "qmybaseformwidget.h"
#include "ui_qNivelacijalista.h"
#include <QStandardItemModel>
#include <QItemSelection>


class QNivelacijaLista : public QMyBaseFormWidget
{
	Q_OBJECT

public:
	QNivelacijaLista(QWidget *parent = 0);
	~QNivelacijaLista();
	void lista(const QString& nameSearch);
	void lista_detail(const QString& nameSearch);
	int getSelectedId(){return m_selectedText.toInt();}
	virtual void pressEscape();
	virtual void pressReturn();

    QStandardItemModel *model;
    QStandardItemModel *model2;
    QStringList geInfo();
    void setInitText(QString text);
	int getRow();
	void setRow(int mrow);

private:
    Ui::QNivelacijaListaClass ui;
    void deleteDok(int idDok);
    QHeaderView *header;
    QHeaderView *header2;
    QString m_selectedText;
	int m_row;
private slots:
    void selectionChanged(QModelIndex modelX, QModelIndex modelY );
    void on_pushButton_clicked();
    void on_pushButton_2_clicked();


signals:
        void closeW();
        void procF2();
        void procF3();
		void sNivelacijaToIzvod(QString& text6, QString& text8, QString& text9, QString& textName);
};

#endif // QNivelacijaLISTA_H
